# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=kdeplasma-applets-xrdesktop
pkgver=0.15.0
pkgrel=1
pkgdesc="xrdesktop applet for KDE Plasma"
url="https://gitlab.freedesktop.org/xrdesktop/kdeplasma-applets-xrdesktop"
# armhf blocked by extra-cmake-modules
# s390x, ppc64le and riscv64 blocked by polkit -> kwin-effect-xrdesktop
arch="noarch !armhf !s390x !ppc64le !riscv64"
license="MIT"
depends="
	kwin-effect-xrdesktop
	qt5-qtquickcontrols
	"
makedepends="
	extra-cmake-modules
	qt5-qtbase-dev
	qt5-qtdeclarative-dev
	plasma-framework-dev
	samurai
	"
source="https://gitlab.freedesktop.org/xrdesktop/kdeplasma-applets-xrdesktop/-/archive/$pkgver/kdeplasma-applets-xrdesktop-$pkgver.tar.gz"
options="!check" # No tests

build() {
	cmake -B build -G Ninja \
		-DCMAKE_BUILD_TYPE=RelWithDebInfo \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib
	cmake --build build
}

package() {
	DESTDIR="$pkgdir" cmake --install build
}

sha512sums="d4988d397fe74a5f7de534c9206d54832ec6e93f596cb8e387f39000e3090ae89db89b01eab138d3d559c8a4e141142b37cf452b171d9bfb76707e01c64989c0  kdeplasma-applets-xrdesktop-0.15.0.tar.gz"
